def value(name):
    value = 0
    
    for c in name:
        value += 1 + ord(c) - ord('A')
        
    return value
        
